package com.house.system.mapper;

import java.util.List;

import com.house.system.domain.Appointment;

/**
 * 预约看房Mapper接口
 * 
 * @author tc
 * @date 2022-02-04
 */
public interface AppointmentMapper 
{
    /**
     * 查询预约看房
     * 
     * @param appointmentId 预约看房主键
     * @return 预约看房
     */
    public Appointment selectAppointmentByAppointmentId(Long appointmentId);

    /**
     * 查询预约看房列表
     * 
     * @param appointment 预约看房
     * @return 预约看房集合
     */
    public List<Appointment> selectAppointmentList(Appointment appointment);

    /**
     * 新增预约看房
     * 
     * @param appointment 预约看房
     * @return 结果
     */
    public int insertAppointment(Appointment appointment);

    /**
     * 修改预约看房
     * 
     * @param appointment 预约看房
     * @return 结果
     */
    public int updateAppointment(Appointment appointment);

    /**
     * 删除预约看房
     * 
     * @param appointmentId 预约看房主键
     * @return 结果
     */
    public int deleteAppointmentByAppointmentId(Long appointmentId);

    /**
     * 批量删除预约看房
     * 
     * @param appointmentIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteAppointmentByAppointmentIds(Long[] appointmentIds);
}
